package com.coin900.coin.server.fu.form;

import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;

/**
 * 修改用户资料
 *
 * @author shui
 * @create 2017-11-22
 **/
public class FuUserForm {

    /**
     * 头像
     */
    @NotEmpty(message = "头像不能为空")
    private String portrait;

    /**
     * 省
     */
    @NotNull(message = "省份不能为空")
    private Long provinceId;

    /**
     * 市
     */
    @NotNull(message = "城市不能为空")
    private Long cityId;

    /**
     * 性别(1男;2女;0未知)
     */
    @NotNull(message = "性别不能为空")
    private Integer gender;

    /**
     * 职业
     */
    @NotEmpty(message = "职业不能为空")
    private String profession;

    /**
     * 工作单位
     */
    @NotEmpty(message = "工作单位不能为空")
    private String workAddress;

    /**
     * 手机号
     */
    @NotEmpty(message = "手机号不能为空")
    private String mobile;

    /**
     * qq
     */
    @NotEmpty(message = "qq不能为空")
    private String qq;

    /**
     * 邮箱
     */
    @NotEmpty(message = "邮箱不能为空")
    private String email;

    /**
     * 联系地址
     */
    @NotEmpty(message = "联系地址不能为空")
    private String address;

    /**
     * 自我简介
     */
    private String introduction;

    public String getPortrait() {
        return portrait;
    }

    public void setPortrait(String portrait) {
        this.portrait = portrait;
    }

    public Long getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(Long provinceId) {
        this.provinceId = provinceId;
    }

    public Long getCityId() {
        return cityId;
    }

    public void setCityId(Long cityId) {
        this.cityId = cityId;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getProfession() {
        return profession;
    }

    public void setProfession(String profession) {
        this.profession = profession;
    }

    public String getWorkAddress() {
        return workAddress;
    }

    public void setWorkAddress(String workAddress) {
        this.workAddress = workAddress;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    @Override
    public String toString() {
        return super.toString() +
                "FuUserForm{" +
                "portrait='" + portrait + '\'' +
                ", provinceId=" + provinceId +
                ", cityId=" + cityId +
                ", gender=" + gender +
                ", profession='" + profession + '\'' +
                ", workAddress='" + workAddress + '\'' +
                ", mobile='" + mobile + '\'' +
                ", qq='" + qq + '\'' +
                ", email='" + email + '\'' +
                ", address='" + address + '\'' +
                ", introduction='" + introduction + '\'' +
                '}';
    }
}
